<@pp.dropOutputFile/>
<#include "../common/util.ftl">

<#-- generate package name -->

<#-- iterate table list-->
<#list doc.tables as table>
<#assign module = doc.artifactid?replace(".", "/") + "/" + table.moduleid?uncap_first>
<#assign fileName = table.name?cap_first>
<#assign data_url = "/" + module + "/" + fileName + "/">
<@pp.changeOutputFile name="/main/webapp/" + module + "/" + fileName + "/showitems.ftl"/>
<#noparse>
<#compress>
<!DOCTYPE html>
<html>
<head>
<title></#noparse>${fileName}<#noparse> test!</title>
<#assign base="${request.getContextPath()}">
<#include "/common/import_r_css.ftl">
<#include "/common/import_r_js.ftl">
<script type="text/javascript"><#include "showitems_js.ftl"></script>
</head>

<body>
	<table id="dataTable"></table>
	<div id="toolbar" style="padding:5px;">
		<form id="search_form" class="form-inline">
			<div class="form-group">
				<div class="input-group">
					<div class="input-group-addon">ID</div>
					<input name="id" type="text" class="form-control" placeholder="ID..." size="10">
					<span class="input-group-btn">
						<button onClick="search()" class="btn btn-primary" type="button"><span class="glyphicon glyphicon-search"></span> 搜索</button>
					</span>
				</div>
			</div>
			<div class="form-group">
				<button onClick="javascript:$dataTable.edatagrid('addRow')" class="btn btn-success" type="button"><span class="glyphicon glyphicon-plus"></span></button>
			</div>
			<div class="form-group">
				<button onClick="javascript:$dataTable.edatagrid('saveRow')" class="btn btn-success" type="button"><span class="glyphicon glyphicon-save"></span> 保存</button>
			</div>
			<div class="form-group">
				<button onClick="javascript:$dataTable.edatagrid('cancelRow')" class="btn btn-warning" type="button"><span class="glyphicon glyphicon-reset"></span> 取消</button>
			</div>
			<div class="form-group">
				<button onClick="$dataTable.edatagrid('destroyRow')" class="btn btn-danger" type="button"><span class="glyphicon glyphicon-remove"></span> 删除</button>
			</div>
		</form>
	</div>

</body>
</html>
</#compress>
</body>
</html>
</#noparse>
</#list>